import type { MenuProps } from 'antd';
import {
  AppstoreOutlined,
  ContainerOutlined,
  DesktopOutlined,
  MailOutlined,
  PieChartOutlined,
} from '@ant-design/icons';
export type MenuItem = Required<MenuProps>['items'][number];

const menuConfig: MenuItem[] = [
  { key: '1', icon: <PieChartOutlined />, label: 'tools' },
  { key: '2', icon: <DesktopOutlined />, label: 'Option 2' },
  { key: '3', icon: <ContainerOutlined />, label: 'Option 3' },
  {
    key: 'sub1',
    label: 'Navigation One',
    icon: <MailOutlined />,
    children: [
      { key: '5', label: 'Option 5' },
      { key: '6', label: 'Option 6' },
      { key: '7', label: 'Option 7' },
      { key: '8', label: 'Option 8' },
    ],
  },
  {
    key: 'sub2',
    label: 'tools',
    icon: <AppstoreOutlined />,
    children: [
      {
        key: 'imageCompress',
        label: '图片压缩工具',
      },
    ],
  },
];

export default menuConfig;